
//////////////////////////////////////////////////////////////////////////////////////////////////////////
//#include "StdAfx.h"
#include "game.h"
#include "ASprite.h"
#include "System/Font.h"


//////////////////////////////////////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////////////////////////////// 
 
void CGame::State_LevelEnd(int depth, int mode)
{
	if(mode == (StateMachineMode::Update))
	{

	}
	else if(mode == (StateMachineMode::Draw2D))
	{		
		GFX_Clear(0xffffffff);
		ASprite* bg = GetResManager()->getSprite(SPRITE_END_GAME_BG);

		bg->PaintFrame(0,0,0);

		
	}
	else if(mode == (StateMachineMode::GainFocus))
	{
		if(!m_isLoadDone)
		{
			GetResManager()->setSpriteToLoad(SPRITE_END_GAME_BG);
			PushState(State::GS_Loading);
		}
	}
	else if(mode == (StateMachineMode::Constructor))
	{
		
	}
	else if(mode == (StateMachineMode::Destructor))
	{
	
	}

}
